<script type="text/javascript">
    var LANG = <?= json_encode($jslang) ?>;
</script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.min.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.datepicker.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.colorpicker.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.autocomplete.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.flexigrid.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.dialog.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.multiselect.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.drop.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.drag.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="<?= $config['res_url'] ?>/js/base.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript" src="js/admin.js?ver=<?= $config['version'] ?>"></script>
<script type="text/javascript">
    SG.config = {
        version: "<?= $config['version'] ?>",
        res_url: "<?= $config['res_url'] ?>"
    };
    SG.admin = $.extend(SG.admin, {
        base_url: "<?= base_url() ?>",
        add_url: "",
        edit_url: "",
        del_url: "",
        multi_url: "",
        user_id: "<?= isset($_GET['user_id']) ? $_GET['user_id'] : 0; ?>"
    });
    SG.flexOptions = {
        errormsg: '<?= translate('JS_FLEXI_ERRORMSG') ?>',
        pagetext: '<?= translate('JS_FLEXI_PAGETEXT') ?>',
        pagestat: '<?= translate('JS_FLEXI_PAGESTAT') ?>',
        outof: '<?= translate('JS_FLEXI_OUTOF') ?>',
        findtext: '<?= translate('JS_FLEXI_FINDTEXT') ?>',
        procmsg: '<?= translate('JS_FLEXI_PROCMSG') ?>',
        nomsg: '<?= translate('JS_FLEXI_NOITEMS') ?>',
        removefilter: '<?= translate('JS_FLEXI_REMOVEFILTER') ?>',
        btnsubmit: '<?= translate('JS_FLEXI_BTNSUBMIT') ?>',
        btnappend: '<?= translate('JS_FLEXI_BTNAPPEND') ?>',
        btnclear: '<?= translate('JS_FLEXI_BTNCLEAR') ?>',
        showcheckbox: true,
        rowhandler: clickhandler,
        onSuccess: flexigridsuccess,
        title: '<?= isset($title) && $title ? $title : '' ?>',
        rp: <?= $user['pagesize'] ?>,
        onLayerInit: binddate,
        height: height
    };
</script>

<div id="headertable" class="operatornow">
    <img src="images/search.png" valign="middle"> <a href="javascript:;" class="search" title="<?= translate('COMMON_VIEW_SEARCH') ?>"><?= translate('COMMON_VIEW_SEARCH') ?></a> 
    <img src="images/view.png" valign="middle"> <a href="general/cache" class="navlink" title="<?= translate('COMMON_VIEW_CACHE') ?>"><?= translate('COMMON_VIEW_CACHE') ?></a> 
    <img src="images/userin.png" valign="middle"> <?= translate('COMMON_VIEW_CUR_ONLINE') ?><b><?= $online_total ?></b>
    <span id="olmain">
        <em id="olarrow"><img src="images/arrowdown.gif" class="olarrow"></em>
        <ul id="online"><?= $online_list ?></ul>
    </span>
    <span class="curpage" id="curpage"><?= $online_cur ?></span> <?= translate('COMMON_VIEW_CUR_PAGE') ?>
    <img src="images/btnreport.gif" valign="middle"><a href="javascript:;" id="debuginfo"><?= translate('COMMON_VIEW_RUNTIME') ?></a>
</div>
<div id="debugdetail">
    <div id="debugintro">
        <?= translate('COMMON_VIEW_USED_TIME') ?>：<b><?= used_microtime() ?></b>  
        <?= translate('COMMON_VIEW_QUERY_COUNTS') ?>：<b><?= $querycounts ?></b>  
        <?= translate('COMMON_VIEW_USED_MEMORY') ?>：<?= used_memeory() ?>
    </div>
    <h3><?= translate('COMMON_VIEW_SQL_DETAIL') ?>：</h3>
    <div id="debugcontent">
        <?= $langname == 'zh_CN' ? $debuginfo : '' ?>
    </div>
</div>
<?php if (isset($flexigridarealist)) { ?>
    <div class="asyncdiv"><?= $flexigridarealist ?></div>
    <?php
}?>